<?php
include_once("../include/init.php");
 $oid = $_GET['oid'];
 $sql = "select * from tr_order where order_id =$oid";
 $res = mysql_query($sql);
 $info = mysql_fetch_assoc($res);
 if($info['order_status']==1){
 	msg("已经付款了","order_list.php");
 }else{

	 $sql = "UPDATE tr_order set order_status=1 where order_id = $oid";
	 mysql_query($sql);
	 if(mysql_affected_rows()>0){
	 	msg('付款成功',"order_list.php");
	 }else{
	 	msg('付款失败',"order_list.php");
	 }
}
?>